home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: chosak@ix.netcom.com (Andrew Chosak)
- Newsgroups: comp.lang.c++
- Subject: using my own libraries (newbie urgent)
- Date: Mon, 12 Feb 1996 04:36:25 GMT
- Organization: Netcom
- Message-ID: <311ec2e6.4502345@nntp.ix.netcom.com>
- NNTP-Posting-Host: ix-nyc14-06.ix.netcom.com
- X-NETCOM-Date: Sun Feb 11 5:37:12 PM PST 1996
- X-Newsreader: Forte Agent .99c/16.141
-
- Hello!
- I am just playing around with making my own header files but I can't
- get it to work. Okay, I make a file called geometry.h with all
- function declarations....
-
- basically just like
- double areacirc(double radius);
- double arearect(double sideone, double sidetwo);
- and so on.....
-
- then I have a file called geometry.c that has
- #include "geometry.h"
- and all of my definitions for the functions
- double areacirc(double radius)
- {
- return (3.14 * radius * radius)
- }
- and that's it
-
- then i have like program.c
- which #include "geometry.h"
- but can't run because it says undefined function "areacirc(double)"
- I know all syntax is right, what's WRONG!!!
- Please respond ASAP, thanks
-
- Chosak
-